package com.example.tms.dto;

import com.example.tms.entity.Employee;

import lombok.Data;

@Data
public class LoginResponse {
    private String token;
    private Integer empId;
    private String name;
    private String phone;
    private String empType;

    public LoginResponse(String token, Employee employee) {
        this.token = token;
        this.empId = employee.getId();
        this.name = employee.getName();
        this.phone = employee.getPhone();
        this.empType = employee.getEmpType();
    }
}
